<template>
  <div class="yuyueList">
    <!-- 预约列表页面 -->
    <div class="search">
      <div class="box1">
        姓名
        <el-input v-model="page.name" placeholder="请输入" maxlength="11"></el-input>
      </div>
      <div class="box2">
        服务项目
        <el-select v-model="page.type" size="mini" clearable placeholder="请选择" @clear="typeClear">
          <el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value"> </el-option>
        </el-select>
      </div>
      <div class="box1">
        电话号码
        <el-input v-model="page.telephone" placeholder="请输入" maxlength="11"></el-input>
      </div>
      <div class="box2">
        状态
        <el-select v-model="page.status" size="mini" clearable placeholder="请选择" @clear="statusClear">
          <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
        </el-select>
      </div>
      <button @click="searchBtn">查询</button>
    </div>
    <div class="table">
      <div class="tableTitle">
        <div class="tableTitleName">预约列表</div>
        <div class="tableTitleBtn">
          <!-- <button class="delBtn">批量删除</button> -->
          <button @click="addBoxBtn">新增</button>
        </div>
      </div>
      <el-table
        :data="tableData"
        border
        class="tableBox"
        :header-cell-style="{
          textAlign: 'center',
          color: '#333',
          fontWeight: '400',
          fontSize: '14px',
          height: '45px',
          padding: '0px',
          margin: '0',
        }"
        :cell-style="{ textAlign: 'center' }"
        style="width: 100%; margin: 0"
      >
        <el-table-column label="序号" type="index" :index="hIndex" width="55px"></el-table-column>
        <el-table-column label="预约来源">
          <template slot-scope="scope">
            <span v-if="scope.row.source === 1">小程序</span>
            <span v-if="scope.row.source === 2">公众号</span>
          </template>
        </el-table-column>
        <el-table-column label="姓名">
          <template slot-scope="scope">
            <span class="nameConact" @click="detailsBtn(scope.row)">{{ scope.row.name }}</span>
          </template>
        </el-table-column>
        <el-table-column label="微信昵称" prop="wechatName"></el-table-column>
        <el-table-column label="服务名称">
          <template slot-scope="scope">
            <span v-if="scope.row.type === 0">洗车</span>
            <span v-if="scope.row.type === 1">贴膜</span>
            <span v-if="scope.row.type === 2">维修</span>
            <span v-if="scope.row.type === 3">改装</span>
          </template>
        </el-table-column>
        <el-table-column label="车辆型号" prop="model"></el-table-column>
        <el-table-column label="车牌号" prop="carId"></el-table-column>
        <el-table-column label="预约时间" prop="reserveDateTime"> </el-table-column>
        <el-table-column label="电话号码" prop="telephone"></el-table-column>
        <el-table-column label="预约状态">
          <template slot-scope="scope">
            <span v-if="scope.row.status === 1">进行中</span>
            <span v-if="scope.row.status === 2">已完成</span>
            <span v-if="scope.row.status === 3">取消</span>
            <span v-if="scope.row.status === 4">删除</span>
            <span v-if="scope.row.status === 5">已过期</span>
          </template>
        </el-table-column>
        <el-table-column label="客户备注" prop="reserveMemo" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column label="备注（管理员）" prop="adminMemo" :show-overflow-tooltip="true"></el-table-column>
        <el-table-column label="消费金额（元）" prop="amount"></el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <div v-if="scope.row">
              <span class="spanBtn" style="margin-right: 10px" @click="editBtn(scope.row)">编辑</span>
              <span class="spanBtn" @click="delBtn(scope.row)">删除</span>
            </div>
          </template>
        </el-table-column>
      </el-table>
      <div v-if="tableData.length !== 0" style="text-align: center" class="pagbox">
        <el-pagination v-model="page" background layout="prev, pager, next" :total="total" :page-size="page.ps" :current-page="page.p" @current-change="handleCurrentChange"> </el-pagination>
      </div>
    </div>
    <!-- 新增弹层 -->
    <el-dialog width="800px" :show-close="false" :close-on-click-modal="false" :visible.sync="addShowDia" :close-on-press-escape="false" top="7vh">
      <div class="diaBox">
        <div class="diaTitle">新增预约</div>
        <div class="diaBody">
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>姓名 </span>
                  <input type="text" v-model="addYuYue.name" placeholder="请输入姓名" maxlength="11" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>客户编号 </span>
                  <input class="nicknameBox" type="text" v-model="addYuYue.userId" placeholder="可输入客户编号" />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>服务项目 </span>
                  <el-select v-model="addYuYue.type" size="mini" placeholder="请选择">
                    <el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value" placeholder="请选择服务项目"> </el-option>
                  </el-select>
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>预约时间 </span>
                  <el-date-picker v-model="addYuYue.reserveDateTime" size="mini" value-format="yyyy-MM-dd HH:mm" type="datetime" placeholder="请选择预约时间"> </el-date-picker>
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>车牌号 </span>
                  <input type="text" v-model="addYuYue.carId" placeholder="请输入车牌号" maxlength="11" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>车辆型号 </span>
                  <input type="text" v-model="addYuYue.model" placeholder="请输入车辆型号" />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>电话号码 </span>
                  <input type="text" v-model="addYuYue.telephone" placeholder="请输入电话号码" maxlength="11" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>预约状态 </span>
                  <el-select v-model="addYuYue.status" size="mini" placeholder="请选择预约状态">
                    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
                  </el-select>
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>消费金额（元）</span>
                  <input type="number" v-model="addYuYue.amount" placeholder="请输入消费金额" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <!-- <span><span style="color: #f00">*</span> 预约状态 </span>
                  <input type="text" value="进行中" readonly /> -->
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="liBox2">
              <div class="liBoxItem2">
                <p>备注（管理员）</p>
                <el-input maxlength="100" type="textarea" v-model="addYuYue.adminMemo" placeholder="请输入备注信息（限100字以内）" />
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="liBox2">
              <div class="liBoxItem2">
                <p>备注（客户）</p>
                <el-input maxlength="100" type="textarea" v-model="addYuYue.reserveMemo" placeholder="请输入备注信息（限100字以内）" />
              </div>
            </div>
          </div>
        </div>
        <div class="btnbox1">
          <div class="btnbox">
            <button class="cancle" @click="cancleBtn">取消</button>
            <button class="edit" @click="addBtn">保存</button>
          </div>
        </div>
      </div>
    </el-dialog>

    <!-- 编辑弹层 -->
    <el-dialog width="800px" :show-close="false" :close-on-click-modal="false" :visible.sync="editShowDia" :close-on-press-escape="false" top="7vh">
      <div v-if="isEdit" class="diaBox">
        <div class="diaTitle">编辑预约</div>
        <div class="diaBody">
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>姓名 </span>
                  <input type="text" v-model="editYuYue.name" placeholder="请输入姓名" maxlength="11" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>微信昵称 </span>
                  <input class="nicknameBox" type="text" readonly :value="editYuYue.wechatName" />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>服务项目 </span>
                  <el-select v-model="editYuYue.type" size="mini" placeholder="请选择">
                    <el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value" placeholder="请选择服务项目"> </el-option>
                  </el-select>
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>预约时间 </span>
                  <el-date-picker v-model="editYuYue.reserveDateTime" size="mini" value-format="yyyy-MM-dd HH:mm" type="datetime" placeholder="请选择预约时间"> </el-date-picker>
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>车牌号 </span>
                  <input type="text" v-model="editYuYue.carId" placeholder="请输入车牌号" maxlength="11" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>车辆型号 </span>
                  <input type="text" v-model="editYuYue.model" placeholder="请输入车辆型号" />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>电话号码 </span>
                  <input type="number" v-model="editYuYue.telephone" placeholder="请输入电话号码" maxlength="11" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span><span style="color: #f00">*</span>预约状态 </span>
                  <el-select v-model="editYuYue.status" size="mini" placeholder="请选择预约状态">
                    <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
                  </el-select>
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>消费金额（元）</span>
                  <input type="number" v-model="editYuYue.amount" placeholder="请输入消费金额" />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <!-- <span><span style="color: #f00">*</span> 预约状态 </span>
                  <input type="text" value="进行中" readonly /> -->
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="liBox2">
              <div class="liBoxItem2">
                <p>备注（管理员）</p>
                <el-input maxlength="100" type="textarea" v-model="editYuYue.adminMemo" placeholder="请输入备注信息（限100字以内）" />
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="liBox2">
              <div class="liBoxItem2">
                <p>备注（客户）</p>
                <el-input maxlength="100" type="textarea" v-model="editYuYue.reserveMemo" placeholder="请输入备注信息（限100字以内）" />
              </div>
            </div>
          </div>
        </div>
        <div class="btnbox1">
          <div class="btnbox">
            <button class="cancle" @click="cancleBtn1">取消</button>
            <button class="edit" @click="editBtn1">保存</button>
          </div>
        </div>
      </div>
      <div v-else class="diaBox">
        <div class="diaTitle">预约详情</div>
        <div class="diaBody">
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>姓名 </span>
                  <input class="nicknameBox" type="text" :value="detailsData.name" readonly />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>微信昵称 </span>
                  <input class="nicknameBox" type="text" :value="detailsData.wechatName" readonly />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>服务项目 </span>
                  <input class="nicknameBox" v-if="detailsData.type === 0" type="text" value="洗车" readonly />
                  <input class="nicknameBox" v-if="detailsData.type === 1" type="text" value="贴膜" readonly />
                  <input class="nicknameBox" v-if="detailsData.type === 2" type="text" value="维修" readonly />
                  <input class="nicknameBox" v-if="detailsData.type === 3" type="text" value="改装" readonly />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>预约时间 </span>
                  <input class="nicknameBox" type="text" :value="detailsData.reserveDateTime" readonly />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>车牌号码 </span>
                  <input class="nicknameBox" type="text" :value="detailsData.carId" readonly />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>车辆型号 </span>
                  <input class="nicknameBox" type="text" :value="detailsData.model" readonly />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>电话号码 </span>
                  <input class="nicknameBox" type="text" :value="detailsData.telephone" readonly />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <span>预约状态 </span>
                  <input class="nicknameBox" v-if="detailsData.status === 1" type="text" value="进行中" readonly />
                  <input class="nicknameBox" v-if="detailsData.status === 2" type="text" value="已完成" readonly />
                  <input class="nicknameBox" v-if="detailsData.status === 3" type="text" value="取消" readonly />
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="diaBodyli">
              <div class="liBox">
                <div class="liBoxItem">
                  <span>消费金额（元） </span>
                  <input class="nicknameBox" type="text" :value="detailsData.amount" readonly />
                </div>
              </div>
              <div class="liBox">
                <div class="liBoxItem">
                  <!-- <span><span style="color: #f00">*</span> 预约状态 </span>
                  <input type="text" value="进行中" readonly /> -->
                </div>
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="liBox2">
              <div class="liBoxItem2">
                <p>备注（管理员）</p>
                <el-input class="nicknameBox" maxlength="100" type="textarea" :value="detailsData.adminMemo" readonly />
              </div>
            </div>
          </div>
          <div class="diaBodyBox">
            <div class="liBox2">
              <div class="liBoxItem2">
                <p>备注（客户）</p>
                <el-input class="nicknameBox" maxlength="100" type="textarea" :value="detailsData.reserveMemo" readonly />
              </div>
            </div>
          </div>
        </div>
        <div class="btnbox1">
          <div class="btnbox">
            <button class="cancle" @click="editShowDia = false">确定</button>
            <button class="edit" @click="switchEditBtn">编辑</button>
          </div>
        </div>
      </div>
    </el-dialog>
  </div>
</template>
<script>
export default {
  name: 'yuyueList',
  data() {
    return {
      tableData: [],
      page: {
        p: 1, // 分页页数
        ps: 8, // 分页条数
        name: null, // 模糊查询预约人
        status: null, // 模糊查询预约状态
        telephone: null, // 模糊查询用户电话
        type: null // 模糊查询业务类型
      },
      total: null, // 总条数
      addShowDia: false, // 新增弹层控制
      editShowDia: false, // 编辑弹层控制
      detailsData: {}, // 详情数据
      isEdit: false, // 是否是编辑状态

      addYuYue: { // 新增数据
        adminMemo: '', // 管理员备注
        amount: null, // 消费金额
        carId: '', // 车牌号
        createTime: '', // 创建时间
        id: null, // 预约id
        model: '', // 车辆型号
        name: '', // 预约人
        reserveDateTime: '', // 预约时间
        reserveMemo: '', // 预约备注
        status: 1, // 预约状态
        telephone: '', // 电话
        type: null, // 业务状态
        userId: null, // 创建人
        wechatName: '' // 微信昵称
      },
      options1: [ // 服务项目
        {
          value: 0,
          label: '洗车'
        }, {
          value: 1,
          label: '贴膜'
        }, {
          value: 2,
          label: '维修'
        }, {
          value: 3,
          label: '改装'
        }
      ],
      options: [ // 预约状态
        {
          value: 1,
          label: '进行中'
        }, {
          value: 2,
          label: '已完成'
        }, {
          value: 3,
          label: '取消'
        }, {
          value: 5,
          label: '已过期'
        }
      ],
      delData: [], // 删除数据
      editYuYue: { // 编辑数据
      }
    }
  },
  mounted() { },
  created() {
    this.getYuYueList()
  },
  // 计算属性
  computed: {
    hIndex() {
      // 当前页数 - 1 * 每页数据条数 + 1
      return (this.page.p - 1) * this.page.ps + 1
    }
  },
  methods: {
    // 预约列表
    async getYuYueList() {
      await this.$http.get('/reserve/page', { params: this.page }).then(res => {
        // console.log(res)
        this.tableData = res.data.data.records
        this.total = res.data.data.total
        // console.log(this.tableData)
      })
    },
    // 翻页
    handleCurrentChange(currentPage) {
      this.page.p = currentPage
      this.getYuYueList()
    },
    // 新增预约取消
    cancleBtn() {
      this.addShowDia = false
    },
    // 新增按钮
    addBoxBtn() {
      this.addYuYue = { // 新增数据
        adminMemo: '', // 管理员备注
        amount: null, // 消费金额
        carId: '', // 车牌号
        createTime: '', // 创建时间
        id: null, // 预约id
        model: '', // 车辆型号
        name: '', // 预约人
        reserveDateTime: '', // 预约时间
        reserveMemo: '', // 预约备注
        status: 1, // 预约状态
        telephone: '', // 电话
        type: null, // 业务状态
        userId: null, // 创建人
        wechatName: '' // 微信昵称
      }
      this.addShowDia = true
    },
    // 新增预约提交
    async addBtn() {
      // console.log(this.addYuYue)
      // if (this.addYuYue.name === '') {
      //   return this.$message.warning('请填写姓名！')
      // }
      if (this.addYuYue.type === null) {
        return this.$message.warning('请选择服务类型！')
      }
      if (this.addYuYue.reserveDateTime === '') {
        return this.$message.warning('请选择预约时间！')
      }
      if (this.addYuYue.carId === '') {
        return this.$message.warning('请填写车牌号！')
      }
      // if (this.addYuYue.telephone === '') {
      //   return this.$message.warning('请填写电话号码！')
      // }
      this.addYuYue.type = parseInt(this.addYuYue.type)
      // 新增预约选择客户编号
      // this.addYuYue.userId = parseInt(sessionStorage.getItem('userId'))
      await this.$http.post('/reserve/manager/save', this.addYuYue).then(res => {
        // console.log(res)
        if (res.data.code === 200) {
          this.$message.success('新增成功！')
          // 刷新列表
          this.getYuYueList()
          this.addShowDia = false
        } else {
          this.$message.error('新增失败，请稍后重试！')
        }
      })
    },
    // 编辑按钮
    editBtn(o) {
      console.log(o)
      this.isEdit = true
      this.editYuYue = {
        adminMemo: o.adminMemo, // 管理员备注
        amount: o.amount, // 消费金额
        carId: o.carId, // 车牌号
        createTime: o.createTime, // 创建时间
        id: o.id, // 预约id
        model: o.model, // 车辆型号
        name: o.name, // 预约人
        reserveDateTime: o.reserveDateTime, // 预约时间
        reserveMemo: o.reserveMemo, // 预约备注
        status: o.status, // 预约状态
        telephone: o.telephone, // 电话
        type: o.type, // 业务状态
        userId: o.userId, // 创建人
        wechatName: o.wechatName
      }
      this.editShowDia = true
    },
    // 编辑取消按钮
    cancleBtn1() {
      this.editShowDia = false
    },
    // 编辑提交按钮
    async editBtn1() {
      // if (this.editYuYue.name === '') {
      //   return this.$message.warning('请填写姓名！')
      // }
      if (this.editYuYue.type === null) {
        return this.$message.warning('请选择服务类型！')
      }
      if (this.editYuYue.reserveDateTime === '') {
        return this.$message.warning('请选择预约时间！')
      }
      if (this.editYuYue.carId === '') {
        return this.$message.warning('请填写车牌号！')
      }
      // if (this.editYuYue.telephone === '') {
      //   return this.$message.warning('请填写电话号码！')
      // }
      this.editYuYue.type = parseInt(this.editYuYue.type)
      await this.$http.post('/reserve/manager', this.editYuYue).then(res => {
        // console.log(res)
        if (res.data.code === 200) {
          this.$message.success('编辑成功！')
          // 刷新列表
          this.getYuYueList()
          this.editShowDia = false
        } else {
          this.$message.error('编辑失败，请稍后重试！')
        }
      })
    },
    // 删除按钮
    async delBtn(o) {
      this.$confirm('是否删除该预约?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        // console.log(o)
        this.delData.push(o.id)
        // console.log(this.delData)
        await this.$http.delete('/reserve', { data: this.delData }).then(res => {
          // console.log(res)
          if (res.data.code === 200) {
            this.$message.success('删除成功！')
            // 刷新列表
            this.getYuYueList()
          } else {
            this.$message.error('删除失败，请稍后重试！')
          }
        })
      })
    },
    // 切换编辑按钮
    switchEditBtn() {
      this.isEdit = true
    },
    // 服务项目下拉框清除
    typeClear() {
      this.page.type = null
    },
    // 服务项目下拉框清除
    statusClear() {
      this.page.status = null
    },
    // 查询按钮
    searchBtn() {
      this.page.p = 1
      this.page.ps = 8
      this.getYuYueList()
    },
    // 查看详情
    detailsBtn(o) {
      // console.log(o)
      this.isEdit = false
      this.detailsData = o
      this.editYuYue = {
        adminMemo: o.adminMemo, // 管理员备注
        amount: o.amount, // 消费金额
        carId: o.carId, // 车牌号
        createTime: o.createTime, // 创建时间
        id: o.id, // 预约id
        model: o.model, // 车辆型号
        name: o.name, // 预约人
        reserveDateTime: o.reserveDateTime, // 预约时间
        reserveMemo: o.reserveMemo, // 预约备注
        status: o.status, // 预约状态
        telephone: o.telephone, // 电话
        type: o.type, // 业务状态
        userId: o.userId, // 创建人
        wechatName: o.wechatName
      }
      this.editShowDia = true
    }
    // goin(id) {
    //   console.log(id)
    //   this.$router.push('/yuyue/details')
    //   sessionStorage.setItem('detailsId', id)
    // }
  }
}
</script>

<style>
body,
html,
#app {
  min-width: 1100px !important;
}
</style>
<style lang="less" scoped>
/deep/ .el-main {
  padding: 0;
}
.yuyueList {
  padding: 0;
  .search {
    width: 100%;
    height: 65px;
    display: flex;
    background-color: #fff;
    box-sizing: border-box;
    padding: 15px 20px;
    .box1 {
      font-size: 14px;
      color: #555;
      margin-right: 30px;
      /deep/ .el-input {
        width: 140px;
        height: 30px;
        border-radius: 15px;
        .el-input__inner {
          width: 140px;
          height: 30px;
          border-radius: 15px;
        }
      }
    }
    .box2 {
      font-size: 14px;
      color: #555;
      margin-right: 30px;
      .el-select {
        width: 110px;
        height: 30px;
        /deep/ .el-input {
          width: 110px;
          height: 30px;
          line-height: 30px;
          border-radius: 15px;
          .el-input__inner {
            width: 110px;
            height: 30px;
            border-radius: 15px;
          }
        }
      }
    }
    button {
      cursor: pointer;
      box-sizing: border-box;
      font-size: 16px;
      color: #ffffff;
      width: 90px;
      height: 30px;
      background: #333333;
      border-radius: 18px;
    }
  }
  .table {
    background-color: #fff;
    padding: 0px 20px;
    .tableBox {
      /deep/ tr {
        max-height: 100px !important;
        td {
          max-height: 100px !important;
          .cell {
            max-height: 100px !important;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
          }
        }
      }
    }
    .tableTitle {
      position: relative;
      height: 50px;
      line-height: 50px;
      background-color: #eee;
      .tableTitleName {
        font-size: 16px;
        color: #333;
        margin-left: 20px;
      }
      .tableTitleBtn {
        position: absolute;
        top: 0;
        right: 25px;
        button {
          cursor: pointer;
          width: 80px;
          height: 30px;
          border-radius: 15px;
          font-size: 16px;
          color: #333;
          margin-left: 15px;
        }
        .delBtn {
          width: 105px;
        }
      }
    }
    .nameConact {
      cursor: pointer;
      color: #2fc0e0;
    }
    .nameConact:hover {
      text-decoration: underline;
    }
    // .nameConact:hover {
    //   color: #2fc0e0;
    // }
    .spanBtn {
      cursor: pointer;
    }
  }
  .pagbox {
    /deep/.el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #333;
    }
  }
  /deep/ .el-dialog__wrapper {
    .el-dialog {
      width: 800px !important;
      .el-dialog__header {
        display: none;
      }
      .el-dialog__body {
        padding: 0;
        .diaBox {
          .diaTitle {
            width: 100%;
            height: 40px;
            line-height: 40px;
            background-color: #eee;
            font-size: 16px;
            color: #333;
            text-align: center;
          }
          .diaBody {
            .diaBodyBox {
              width: 100%;
              // height: 30px;
              padding: 0 25px;
              font-size: 14px;
              color: #333;
              box-sizing: border-box;
              margin-top: 15px;
              .diaBodyli {
                width: 100%;
                height: 30px;
                .liBox {
                  position: relative;
                  display: inline-block;
                  width: 50%;
                  height: 30px;
                  box-sizing: border-box;
                  .liBoxItem {
                    position: absolute;
                    top: 0;
                    right: 30px;
                    margin: 0 auto;
                    input {
                      width: 217px;
                      height: 30px;
                      box-sizing: border-box;
                      border: 1px solid #eee;
                      outline: none;
                      border-radius: 5px;

                      padding: 0 10px;
                    }
                    .nicknameBox {
                      color: #aaa;
                    }
                    .el-select {
                      // width: 110px;
                      height: 30px;
                      .el-input {
                        // width: 110px;
                        height: 30px;
                        .el-input__inner {
                          // width: 110px;
                          height: 30px;
                        }
                        .el-input__suffix-inner {
                          height: 30px;
                        }
                      }
                    }
                  }
                }
              }
              .liBox1 {
                width: 100%;
                height: 30px;
                .liBoxItem1 {
                  float: right;
                  input {
                    width: 600px;
                    height: 30px;
                    box-sizing: border-box;
                    border: 1px solid #eee;
                    outline: none;
                    border-radius: 5px;
                    padding: 0 5px;
                  }
                }
              }
              .liBox2 {
                width: 96%;
                .liBoxItem2 {
                  box-sizing: border-box;
                  display: flex;
                  justify-content: center;
                  // justify-content: flex-end;
                  .nicknameBox {
                    /deep/ .el-textarea__inner {
                      color: #aaa !important;
                    }
                  }
                  p {
                    display: block;
                    min-width: 125px;
                    text-align: right;
                    white-space: nowrap;
                    margin: 0;
                  }
                }
              }
            }
          }
          .btnbox1 {
            width: 100%;
            height: 80px;
            background-color: #fff;
            .btnbox {
              position: absolute;
              right: calc(50% - 135px);
              bottom: 25px;
              .cancle {
                cursor: pointer;
                width: 100px;
                height: 35px;
                background-color: #fff;
                color: #333;
                font-size: 14px;
                border-radius: 20px;
                margin-right: 70px;
              }
              .edit {
                cursor: pointer;
                width: 100px;
                height: 35px;
                background-color: #333;
                color: #fff;
                font-size: 14px;
                border-radius: 20px;
              }
            }
          }
        }
        .dialogContainer {
          .head {
            width: 100%;
            height: 40px;
            background: #eeeeee;
            display: flex;
            align-items: center;
            justify-content: center;
          }
          .content {
            padding: 20px;
            height: 500px;
            overflow-y: scroll;
            .carList {
              display: flex;
              flex-wrap: wrap;
              .add {
                margin-left: 10px;
                border: 0;
                height: 40px;
                width: 50px;
                font-size: 14px;
              }
              .item {
                position: relative;
              }
              .del {
                position: absolute;
                right: 0;
                border: 0px;
              }
              input {
                width: 100px;
                height: 40px;
                border: 1px solid #dcdfe6;
                box-sizing: border-box;
                color: #606266;
                display: inline-block;
                font-size: inherit;
                margin-left: 5px;
                margin-bottom: 5px;
                outline: none;
                border-radius: 5px;
                padding: 0 5px;
              }
            }
            .memo {
              /deep/.el-input__inner {
                height: 82px;
                background: #ffffff;
                border: 1px solid #eeeeee;
              }
            }
          }
          .btn {
            padding: 0px 100px;
            height: 76px;
            display: flex;
            justify-content: space-evenly;
            button {
              width: 99px;
              height: 35px;
              background: #ffffff;
              border-radius: 20px;
              border: 1px solid #333333;
              &:nth-child(2) {
                background: #333333;
                color: #ffffff;
              }
            }
          }
        }
      }
    }
  }
}
// 清除input按钮
/deep/ input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -moz-appearance: textfield;
}
// 清除选择时间小图标

/deep/.el-icon-time:before {
  display: none;
}
// /deep/.el-table th.gutter {
//   display: table-cell !important;
// }
</style>
